<template>
	<view class="container">
		<!-- 公司动态 -->
		<!-- <u-empty v-show="empty" mode="permission" text="页面暂未开放">
		</u-empty> -->
		<view class="content">
			<view class="title">{{data.noticeTitle}}</view>
			<view class="time">{{data.createTime}}</view>
			<view v-html="data.noticeContent" >
				
			</view>
		</view>
	</view>
</template>

<script>
	import {
		dynamicState
	} from '../../../../api/company.js'
	export default {
		data() {
			return {
				data: null
			}
		},
		mounted() {
			this.init()
			console.log('111')
		},
		methods: {
			async init() {
				let _this = this
				let result = await dynamicState()
				result.data.data.noticeContent = result.data.data.noticeContent.replaceAll('/dev-api','https://lxsw.pcippc.com/api')
				_this.data = result.data.data
				console.log('公司动态', result)
			}
		},
	}
</script>

<style lang="scss" scoped>
	.container {
		width: 100%;
		display: inline-block;
		.content{
			width: 90%;
			margin: 60rpx auto;
			>view{
				margin-top: 10rpx;;
			}
			.title{
				font-size: 1.5rem;
				font-weight: 600;
			}
			.time{
				font-size: 1rem;
				text-align: right;
			}
			/deep/img{
				width: 100%;
				height: 100%;
			}
		}
		
	}
</style>